-- GENERATED SPELL FOR [Lord Sakrasis] --


function spell0_2541(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2541', 642, 1)
end

function spell1_2541(pUnit, Event) --@Deadly Poison,n/a--
pUnit:FullCastSpellOnTarget(3583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2541', 2000, 1)
end

function Sorts_2541(pUnit, Event)
local choix_sorts_2541 = math.random(0, 1)
if choix_sorts_2541 == 0 then
pUnit:RegisterEvent('spell0_2541', 1, 1)
end
if choix_sorts_2541 == 1 then
pUnit:RegisterEvent('spell1_2541', 1, 1)
end
end

function mob2541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2541', math.random(1500, 3000), 1)
end

function mob2541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2541, 1, 'mob2541_Action')
RegisterUnitEvent(2541, 2, 'mob2541_Leave')
RegisterUnitEvent(2541, 3, 'mob2541_Kill')
RegisterUnitEvent(2541, 4, 'mob2541_Die')
